package com.how2java.pojo;

import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;

/**
 * Created by didi on 27/01/2018.
 */
public class Product {
    private int id;
    private String name;
    @Resource(name = "c")
    private Category category;
    @Resource(name = "c1")
    private Category category1;

    public Product() {
        System.out.println("Product init!");
    }

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Category getCategory() {
        return category;
    }
    public void setCategory(Category category) {
        this.category = category;
    }
    public Category getCategory1() {
        return category1;
    }
    public void setCategory1(Category category1) {
        this.category1 = category1;
    }

}
